package com.pig4cloud.pig.pigunit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.pigunit.entity.Unit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UnitMapper extends BaseMapper<Unit> {
    Unit getByBuildingIdAndUnitName(Unit unit);

	Page<Unit> selectAll(Page<Unit> page, @Param("unitName") String unitName);

	void deleteByIds(Long[] ids);
}
